package com.zx._09_架构.扩展性.cpt1_event.handler;

import com.zx._09_架构.扩展性.cpt1_event.event.AddEvent;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class AddEventHandler extends EventHandler<AddEvent>{

    @Override
    public boolean on(AddEvent event) {
        log.info("处理事件：AddEvent, a={}, b={}, add={}",
                event.getA(),  event.getB(),
                event.getA() + event.getB());
        return true;
    }
}
